<?php
/**
 * Created by PhpStorm.
 * User: tangchao
 * Date: 19-4-19
 * Time: 下午2:36
 * SPL标准库
 */
define('BASEDIR',__DIR__);

include BASEDIR.'/Lib/Loader.php';

spl_autoload_register('\\Lib\\Loader::autoload');

//栈 先进后出
$stack = new SplStack();

$stack->push('data1');
$stack->push('data2');

echo $stack->pop(); //data2
echo $stack->pop(); //data1

